package com.zenithmind.common.security;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.web.util.matcher.RequestMatcher;

import java.util.List;

/**
 * 安全规则
 * 包含路径匹配器和角色列表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SecurityRule {
    
    /**
     * 路径匹配器
     */
    private RequestMatcher pathMatcher;
    
    /**
     * 所需角色列表
     */
    private List<String> requiredRoles;
    
    /**
     * 优先级
     */
    private Integer priority;
    
    /**
     * 规则描述
     */
    private String description;
} 